package com.eatme.web.sys.workflow.activiti.delegate.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ActivitiAssigneeListener implements TaskListener {
    private static final Logger LOG = LoggerFactory.getLogger(ActivitiAssigneeListener.class);
    @Override
    public void notify(DelegateTask delegateTask) {
        LOG.info("执行人2："+delegateTask.getVariable("delegateAssignee"));
        //根据执行人 获取组织机构代码，加工后得到领导是
//        delegateTask.setAssignee("");
    }
}
